import { instance as request } from "@/utils/request"
type RETURNDATA = {
  code: number
  msg: string
  data?: any
}
const UploadImage = (data?: any) => {
  return request<any, RETURNDATA>({
    method: "POST",
    url: "/admin/upload",
    data: data,
    headers: {
      "Content-Type": "multipart/form-data",
    },
  })
}
export default UploadImage
